import { ICPU } from "../api/cpu";
import { IInterrupt } from "../api/interrupt";

class Interrupt implements IInterrupt {
    cpu: ICPU;

    constructor(cpu: ICPU) {
        this.cpu = cpu;
    }


    irq(): void {
        this.cpu.irq()
    }
    nmi(): void {
        this.cpu.nmi()
    }

}

export {
    Interrupt
}